<%--区域管理元查看该区域用户信息界面--%>
<%@ page import="pojo.User" %>
<%@ page import="dao.ImplementUser" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: tangms
  Date: 2022/4/2
  Time: 8:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<style>
    .users{
        margin: auto;
        margin-left: 200px;
    }
</style>
<body>
<table class="users" border="1" width="500" align="center">
    <tr>
        <th>姓名</th>
        <th>密码</th>
        <th>年龄</th>
        <th>性别</th>
        <th>电话</th>
        <th>操作</th>
    </tr>
    <%
        String usename= (String) session.getAttribute("usename");
        User user=new User();
        ImplementUser implementUser=new ImplementUser();
        user=implementUser.getuser(usename);
        request.setAttribute("user",user);
    %>
    <tr>
        <td>${user.usename}</td>
        <td>${user.password}</td>
        <td>${user.age}</td>
        <td>${user.gender}</td>
        <td>${user.telephone}</td>
        <td><a href="${pageContext.request.contextPath}/findUserServlet?id=${user.id}"><input type="submit" value="修改"></a>
        <a href="/allAreas.jsp"><input type="submit" value="返回"></a></td>
    </tr>
</table>
</body>
</html>
